<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
  <style>
    .c {
      width: 200px;
      height: 200px;
      background: greenyellow;
    }

    .b {
      width: 150px;
      height: 150px;
      background: rgb(61, 63, 206);
    }

    .a {
      width: 100px;
      height: 100px;
      background: rgb(238, 198, 67);
    }
  </style>
</head>

<body>
  <div id="app">

    <div class="c" @click.capture="c">
      c
      <div class="b" @click.capture="b">
        b
        <div class="a" @click.capture="a">a</div>

      </div>

    </div>

    <form v-on:submit.prevent="handleSubmit()">
<input type="submit" name="" id="" >
    </form>

    <hr>
    <input v-on:keyup.enter="submit">

  </div>

  <script>

// Object.defineProperty
// Proxy

    var vm = new Vue({
      el: "#app",
      data: {
      },
      methods: {
        a() {
          console.log('a')
        },
        b() {
          console.log('b')
        },
        c() {
          console.log('c')
        },
        handleSubmit(){
          console.log('handleSubmit')
        },
        submit(){
          console.log('submit')
        }
      }


    })



  </script>

</body>

</html>